﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Kira.Compiler.Bods
{
    [XmlElementMapping("DIFunction")]
    public class DIFunction : BodsObject
    {
        public String Owner
        {
            get
            {
                return this.GetAttrbuteValue("owner");
            }
        }

        public String Datastore
        {
            get
            {
                return this.GetAttrbuteValue("datastore");
            }
        }

        public IEnumerable<DIElement> Parameters
        {
            get
            {
                return this.GetElement("DIFunctionParameters").GetElements<DIElement>();
            }
        }
    }
}
